package student;


import java.util.ArrayList;
import java.util.List;

public class StudentList {
    private List<Student> list;

    public StudentList(){
        list = new ArrayList<>();
    }
    public void remove(int pos){
        list.remove(pos);
    }
    public Student get(int pos){
        return list.get(pos);
    }
    public int size(){
        return list.size();
    }
    public void add(Student student){
        list.add(student);
    }
    public void set(int pos,Student stu){
        list.set(pos,stu);
    }
    public List<Student> getList() {
        return list;
    }

}
